package cn.cqone.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Contract {
    // id
    private Long  id;

    //合同单号
    private  String sn;

    //合同客户
    private  String customer;

    //付款详情
    private String contractDetails_id;

    //签定时间，客户合同项目成功履行后，开始计时1年
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    private Date signTime = new Date();

    //营销人员
    private String employee_id;

    //合同金额
    private BigDecimal sum;

    //合同摘要
    private  String intro;

    //所属租户
    private  String  tenant_id;

}
